package com.yami.shop.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yami.shop.bean.model.ExtensionWorker;
import com.yami.shop.common.util.PageAdapter;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ExtensionMapper extends BaseMapper<ExtensionWorker> {

    ExtensionWorker getExtensionWorker(@Param("userId") String userId);

    List<ExtensionWorker> listExtensionWork(@Param("adapter") PageAdapter adapter, @Param("extensionWorker") ExtensionWorker extensionWorker);

    Long workCountAccount(@Param("extensionWorker") ExtensionWorker extensionWorker);

}
